package lk.icta.common;

public class AppConstants {
    /**
     * Language identifier for English
     */
    public static final String ENGLISH = "en";
    /**
     * Language identifier for Sinhala
     */
    public static final String SINHALA = "si";
    /**
     * Language identifier for Tamil
     */
    public static final String TAMIL = "ta";
    /**
     * The Location to store the supporting documents
     */

    public static final String COUNTRY = "LK";

    public static final String CONTENT_ROOT = "/data/supportingDocuments/";

    public static final int daysToReduce = 7;

    public static final String APPLICATION_URL = "http://eslims.gov.lk";

    public static final String ATTACH_LAND_URL = "http://localhost:8080/eLand/searchDefineAmLandsToLandAttach.do";

    public static final String APPLICATION_NAME_EN = "Railway Land Information and Management System";
    public static final String APPLICATION_NAME_SI = " දුම්රිය ඉඩම් තොරතුරු සහ කළමනාකරණ පද්ධතිය";
    public static final String APPLICATION_NAME_TA = " அரச‌ காணி தொடர்பான‌ தகவல் மற்றும் முகாமைத்துவ முறைமை";


    public static final String GEO_DECIMAL_FORMAT_STRING = "#.##################"; // 6 dp seems to be reasonable

    /**
     * Alienation Methods
     * DO NOT CHANGE THE VALUES.
     * THESE VALUES ARE USED IN JSP PAGES TO TRACT THE ALIENATION METHOD
     */
    public static final int UN_ALIENATED = -1;
    public static final int LAND_PERMIT = 1;
    public static final int LAND_GRANT = 2;
    public static final int SHORT_TERM_LEASE = 3;
    public static final int LONG_TERM_LEASE = 4;
    public static final int RELEASING_TO_DEPARTMENTS = 5;
    public static final int VESTING_ORDER = 6;
    public static final int SPECIAL_GRANT = 7;
    public static final int NEW_ALIENATION = 10;

    public static final int PERSON_APPLICANT = 1;
    public static final int INSTITUTE_APPLICANT = 0;

    //Workbench actions
    public static final String COMPLETED = "completed";
    public static final String APPROVED = "approved";
    public static final String ALLOCATED = "allocated lands";
    public static final String FINALIZED = "finalized";
    public static final String GRANTED = "granted";
    public static final String REJECTED = "rejected";
    public static final String GRANTREJECTED = "grantrejected";
    public static final String HANDLED = "handled";
    public static final String ATTACHED = "attached";


    public static final String ORLM_USER_ROLE = "ORLM";
    public static final String ORPII_USER_ROLE = "ORPII";
    public static final String URMGOI_USER_ROLE = "URMGOI";
    public static final String ORMOI_USER_ROLE = "ORMOI";
    public static final String LO_USER_ROLE = "LO";
    public static final String ORRFL_USER_ROLE = "ORRFL";
    public static final String ORDS_USER_ROLE = "ORDS";
    public static final String PLC_USER_ROLE = "PLC";
    public static final String PMA_USER_ROLE = "PMA";
    public static final String DPLC_USER_ROLE = "DPLC";
    public static final String APLC_USER_ROLE = "APLC";

    public static final String LCG_USER_ROLE = "LCG";
    public static final String ORLP_USER_ROLE = "ORLP";
    public static final String PSEC_USER_ROLE = "PSEC";
    public static final String SLC_USER_ROLE = "SLC";
    public static final String ADMIN_USER_ROLE = "ADMIN";
    public static final String PA_USER_ROLE = "PA";
    public static final String MA_USER_ROLE = "MA";
    public static final String ALC_USER_ROLE = "ALC";
    public static final String DLC_USER_ROLE = "DLC";
    public static final String LC_USER_ROLE = "LC";


    public static final String ORIP_USER_ROLE = "ORIP";
    public static final int ORIP_DEFAULT_DS_ID = 3;

    public static final String SESSION_USER_BEAN = "userBean";
    public static final String SESSION_ONLINE_USER_BEAN = "onlineUserBean";
    public static final String SESSION_ONLINE_USER_DS = "onlineUserDSBean";
    public static final String SESSION_ONLINE_USER_GROUP = "onla";
    public static final String SESSION_USER_DEVICE = "device";
    public static final String SESSION_USER_GROUP = "userGroup";
    public static final String DEFAULT_PASS = "password";
    public static final String SESSION_USER_PROVINCE_ID = "provinceId";

    //Struts actions to be loaded in workbench
    public static final String LOAD_INITIAL_APP_LIST_TO_BE_APPROVED_ACTION = "initApplicationApprove.do";
    public static final String LOAD_DETAILED_APP_LIST_TO_BE_APPROVED_ACTION = "loadDetailedApplicationListToBeApproved.do";

    public static final String LOAD_DETAILED_APP_LIST_TO_BE_FINALIZED_ACTION = "loadDetailedApplicationListToBeFinalized.do";
    public static final String LOAD_FINALIZED_APP_LIST_ACTION = "loadFinalizedAppList.do";

    public static final String LOAD_APP_LIST_ACTION = "loadApplicationList.do";
    public static final String LOAD_APP_LIST_ACTION_USE_ALIENATION_METHOD = "loadApplicationListUseAlienationMethod.do";

    public static final String LOAD_REJECTED_APP_LIST_ACTION = "loadRejectedApplicationList.do";
    public static final String LOAD_APP_LIST_TO_BE_COMPLETED_ACTION = "loadApplicationListToBeCompleted.do";
    public static final String LOAD_LAND_LIST_TO_BE_APPROVED_ACTION = "detailForm.do";
    public static final String LOAD_REJECTED_LAND_LIST_ACTION = "rejectLandList.do";


    public static final String LOAD_INIT_LAND_LIST_TO_BE_COMPLETED_ACTION = "initFormUpdateList.do";
    public static final String LOAD_DETAILED_LAND_LIST_TO_BE_COMPLETED_ACTION = "detailForm.do";
    // public static final String GET_APPLICATIONS_BY_STATE = "getApplicationsByState.do";
    public static final String LOAD_INITIAL_REJECTED_APP_LIST_ACTION = "getRejectedInitApplications.do";
    public static final String LOAD_INITIAL_APPROVED_APP_LIST_ACTION = "getApprovedInitApplications.do";
    public static final String LOAD_LAND_ALLOCATED_APP_LIST_ACTION = "getLandAllocatedApplications.do";
    public static final String LOAD_LAND_ALLOCATION_APPROVED_APP_LIST_ACTION = "getAllocationApprovedApplications.do";
    public static final String LOAD_COMPLETED_APP_LIST_ACTION = "getCompletedApplications.do";
    public static final String LOAD_OBJECTION_HANDLING_APP_LIST_ACTION = "getObjectionHandlingApplicationList.do";
    public static final String LOAD_OBJECTION_HANDLING_APPROVED_APP_LIST_ACTION = "getObjectionHandlingApprovedApplicationList.do";
    public static final String LOAD_FINALIZED_APPLICATION_LIST_ACTION = "getFinalizedAppList.do";
    // public static final String LOAD_PRINT_SIGN_DOC_LIST = "getSignAttachedDocAppList.do";
    public static final String LOAD_INFORM_REC_APP_LIST = "getInformRecipientAppList.do";
    //public static final String LOAD_PRINT_SIGN_DOC_LIST = "getSignAttachedDocAppList.do";
    public static final String LOAD_PRINT_SIGN_DOC_LIST = "signedAgreementList.do";
    public static final String LOAD_ASSOCIATE_LAND_LIST_TO_BE_APPROVED_ACTION = "loadLandList.do";
    public static final String LOAD_DEFINE_AM_LAND_LIST_TO_BE_APPROVED_ACTION = "defineAlienationMethodForLand.do";
    public static final String LOAD_LAND_KACHCHERY_LIST_TO_BE_APPROVED_ACTION = "loadKachcheryTobeApproved.do";
    public static final String LOAD_LAND_KACHCHERY_LIST_REJECT_ACTION = "loadKachcheryRejectList.do";
    public static final String LOAD_LAND_KACHCHERY_LIST_ATTACH_DOC = "loadKachcheryAttachDocList.do";
    public static final String LOAD_SUB_DIVIDED_LAND_LIST_TO_BE_APPROVED_ACTION = "subDividedLandList.do";


    //Agreement Constants
    public static final String PRESIDENT_NAME = "මහින්ද රාජපක්ෂ ";

    public static final String LCG_NAME_SI = "ආර්.පී.ආර්.රාජපක්ෂ";
    public static final String LC_NAME_SI = "පී.ඩී.අයි.එල්.විජේගුණවර්ධන";
    public static final String MINISTER_NAME_SI = "ජනක බණ්ඩාර තෙන්නකෝන්";

    public static final String UN_ALIENATED_EN = "Un-Alienated";
    public static final String UN_ALIENATED_SI = "බැහැර නොකරන ලද ඉඩම්";
    public static final String UN_ALIENATED_TA = "Un-Alienated in ta";
    public static final String ALIENATED_SI = "බැහැර කරන ලද ඉඩම්";

    public static final int ALL = -1;

    public static final String duration = "30";
    public static final String duration_word = "තිහක";
    public static final String year = "එකක්";
    public static final String house = "නිවස";
    public static final String other = "නේවාසික";
    public static final String five = "පහක්";

    public static final String srartfrom = "1991/06/03";
    public static final String srartfrom_month = "1991 ජූනි";

    public static final String start_month = "ජූනි";

    public static final String premium = "රු 5752";
    public static final String premium_word = "පන්දහස් හත්සිය පනස් දෙකක්";

    public static final String anual_rental = "රු 1584";
    public static final String anual_rental_word = "එක් දහස් පන්සිය අසූ හතර";

    public static final String lease_diagram_no = "එල්/කො/108";
    public static final String field_sheet_no = "66/9/3";

    public static final String area_word = "බිංදුවයි දශම බිංදුවයි තුනයි හයයි තුන";

    public static final int NO_OF_PROVINCE = 9;
    public static final int NO_OF_BRANCHES = 3;

    public static final int NO_OF_RAILWAY_TRACKS = 10;

    public static final int MAX_ROWS_PER_PAGE = 50;
    public static final String MAX_ROWS_PER_PAGE_STRING = "10";

    public static final String NO_OBJECTIONS = "No Objections";


    public static final String ADMIN = "admin";

    public static final String INITIAL_APP_PRIFIX = "ILA";

    public static final String DETAILED_APP_PRIFIX = "DLA";

    public static final String ANDROID = "ANDROID";
    public static final String OTHER = "OTHER";

    public static final int NEW_MODE = 0;
    public static final int UPDATE_MODE = 1;
    public static final int APPROVE_MODE = 2;
    public static final int COMPLETE_EDIT_MODE = 5;
    public static final int OBJECTION_MODE = 1;

    //Workflow
    //Long Term Lease applications approved by PLC
    public static final int PLC_APPROVED = 31;
    public static final int ORLP_APPROVED = 35;

    public static final int LAND_ALLOCATION_APPROVED = 11;

    public static final String APPROVE = "Approved";
    public static final String REJECTE = "Rejected";
    public static final String ENTER = "Entered";
    public static final String SAVE_OBJECTION = "Save Objection";
    public static final String SEND_OBJECTION_TO_PLC = "Send Objections to PLC";
    public static final String FINALIZE_AS_NO_OBJECTION = "Finalize as No Objections";

    public static final String LAND_IMAGE_DOC_CATEGORY = "Land Image";

    //Kachchery Modes
     public static final int KACHCHERY_SAVE = 0;
     public static final int KACHCHERY_EDIT = 1;
     public static final int KACHCHERY_APPROVE = 2;
     public static final int KACHCHERY_REJECT = 3;
     public static final int KACHCHERY_ATTACH_DOC = 4;

     public static final int OBJECTION_EXP_DAYS= 14;


    /**
     * SMS Web Service Related Constants
     */

    public static final String GOVSMS_DEP_CODE = "eSLIMS";
    public static final String GOVSMS_NAMESPACE_PREFIX = "govsms";
    public static final String GOVSMS_NAMESPACE_URI = "http://govsms.icta.lk/";
    public static final String GOVSMS_AUTHDATA_USER = "icta";
    public static final String GOVSMS_AUTHDATA_KEY = "g0v5ms123";

    /**
     * Railway Project Constants
     */

    public static final String SC_USER_ROLE = "SC";

    public static final String BO_USER_ROLE = "BO";
    public static final String SH_USER_ROLE = "SH";

    public static final String SDH_USER_ROLE = "SDH";
    public static final String DH_USER_ROLE = "DH";

    public static final String DATE_FORMAT = "dd/MM/yyyy";

    public static final int BRANCH_COMM = 1;
    public static final int BRANCH_UPP = 2;
    public static final int BRANCH_RRM = 3;
    public static final int BRANCH_SYS = 4;

    public  static final String SYSTEM_USER = "system";


    public static final int VALUATION_RENEW_YEARS = 5;
}
